<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/cate/catelist" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>
<body>
	<div class="page">
    <div class="page-hd">
      <h1>栏目列表</h1>
    </div>
    <div class="filterbar">
      <label for="">站点列表：
        <select name="sitelist" id="J_sitelists">
          <option value="0">请选择</option>
          <volist name="sitelist" id="slist">
            <option value="{$slist['siteid']}" <eq name="slist.siteid" value="$ssid">selected</eq>>{$slist['name']}</option>
          </volist>
        </select>
      </label>
      <label for="">
        <notempty name="location">
          当前位置: {$location}
        </notempty>
      </label>
    </div>
    <hr>
    <input type="hidden" id="J_hideSid" value="{$ssid}" />
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:14px">
                <input type="checkbox" class="toggle-all">
              </th>
              <th style="">ID</th>
              <th style="">栏目名称</th>
              <th style="">外部链接</th>
              <th style="">图片地址</th>
              <th style="">栏目模版</th>
              <th style="">内容模版</th>
              <th style="">创建人</th>
              <th style="">最后修改时间</th>
              <th style="width:50px;">排序</th>
              <th style="width:80px;">操作</th>
            </tr>
          </thead>
          <tbody>
            <volist name="list" id="cate">
              <tr data-id="{$cate['id']}">
                <td>
                  <input type="checkbox" name="checkbox" class="toggle" />
                </td>
                <td><a href="{$cate['cateurl']}" target="_blank">{$cate.id}</a>
                </td>
                <td>
                  <img src="__PUBLIC__/admin/images/folder-closed.gif" /><a href="{:URL('cms/Cate/catelist',array('pid'=>$cate['id'],'sid'=>$cate['siteid']))}">{$cate['cname']}</a>
                </td>
                <td>{$cate['url']}</td>
                <td>
                  <neq name="cate.imageurl" value="">
                    <img showbigimage="true" style="max-height: 80px;max-width: 120px" class="maxHeight" src="{$cate['imageurl']}">
                  </neq>
                </td>
                <td>{$cate['catetemplate']}</td>
                <td>{$cate['arttemplate']}</td>
                <td>{$cate['create_uname']}</td>
                <td>{$cate['updatetime']|date="Y-m-d H:i:s",###}</td>
                <td>
                  <a href="javascript:;" class="moveup"></a>
                  <a href="javascript:;" class="movedown"></a>
                </td>
                <td><a href="javascript:;" onclick="javascript:window.location.href='{:URL('cms/Cate/updateCate',array('id'=>$cate['id'],'sid'=>$cate['siteid']))}'">修改</a> |
                  <a href="javascript:;" class="A_del">删除</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
      <div class="datas-ft" style="display: none;">
        <div class="actions">
          <a href="{:URL('cms/Cate/addcate',array('pid'=>$cid,'sid'=>$ssid))}" class="btn">添加栏目</a>
          <a href="javascript:;" class="btn" id="J_del">批量删除</a>
        </div>
      </div>
    </div>
  </div>
</body>
</html>
